<?php
class advert{
	public function Insert($advert)
	{
		$ci =& get_instance();
		
		$ci->db->insert('advert', $advert);
		
		return $ci->db->insert_id();
	}
}
?>